* Djgpp:
O gcc-O2-O djgpplba.exe djgpplba. c
* Watcom:
O wcl386/L = dos4g djgpplba. c
O wcl/L = dos djgpplba. c
For Open Watcom, the compiler option is-BD. This option must be used with at least one module and is required for proper DLL startup code to be linked in.
Setting up open Watcom (win32) on LinuxSome simple tests
Make a test file 'test. c'
# Include Voi
DOS/4G. Obviously, it is a solution for DOS programs to use 4G memory.
Do you still remember the legend of doom, C C, Red Police, and Jin yongqun Xia? When the program runs, it will display a line of "dos/4GW...", which is a game written by Watcom C ++. Because the game industry requires a large array of memory, texture, and sound processing. If the array is used in multiple parts, the programmer is too tired to execute such a large program.
Well, D
the new kernel. After setup finds this, it will stop. According to the specification, you should write it as 0xff, which indicates the unknown boot loader. If your bootloader has an officially assigned type id, write your own value.
6. Details 2: how to load the kernel
If your current environment is nothing, you must use the bios interrupt or ATA command to read the hard disk. However, if you have a basic DOS system, you can use the DOS program. In order to be able to operate the entire 4 GB
global variable, e.g. conv_mem_size, is accessed by ASM code, it should being declared with a leading underscore in th E ASM Code:EXTERN _conv_mem_size; NASM syntaxmov [_conv_mem_size],axLinux ELF does not use underscores. Watcom C uses trailing underscores for function names, and leading underscores for global variables.If your GCC supports it, leading underscores can be turned off with the compiler Option-fno-leading-underscorePascal Calling conven
return: Returns a pointer to the position, if not found, returns a null pointerParameter description:File belongs:
#include #include int main (){Char *str1= "Open Watcom + + +", *str2= "Watcom", *ptr;Ptr=strstr (STR1,STR2);printf ("The substring is:%s\n", PTR);return 0;}
@ Function Name: StrrevFunction prototype: Char *strrev (char *s)function function: Reverse all characters in a string in orderfunction
bootloader has an officially assigned type ID, write your own value.
6. Details 2: how to load the kernel
If your current environment is nothing, you must use the BIOS interrupt or ata command to read the hard disk. However, if you have a basic DOS system, you can use the DOS program. In order to be able to operate the entire 4 GB address space, I used Watcom C to write a small program to read the kernel. However, you can follow the practice in boots
character % C is at position: % d/N", C, PTR-string );ElsePrintf ("the character was not found/N ");Return 0;}
@ Function name: strrchrFunction prototype: char * strrchr (const char * s, int C)Function: Obtain the position pointer of the last C character in string S.Function return: Position pointerParameter description:File:
# Include # Include Int main (){Char string [15];Char * PTR, c = 'R ';Strcpy (string, "This is a string ");PTR = strrchr (string, C );If (PTR)Printf ("the character % C i
str2 string Terminator)Function return: returns the pointer to this position. If no pointer is found, a null pointer is returned.Parameter description:File:
# Include # Include Int main (){Char * str1 = "Open Watcom C/C ++", * str2 = "Watcom", * PTR;PTR = strstr (str1, str2 );Printf ("the substring is: % s/n", PTR );Return 0;}
@ Function name: strrevFunction prototype: char * strrev (char * s)Function: so
Preface-------
The PE ("portable executable") file format is the format of executableBinaries (DLLs and programs) for MS Windows NT, Windows 95 andWin32s; in Windows NT, the drivers are in this format, too.It can also be used for object files and libraries.
The format is designed by Microsoft and standardized by the TIs (ToolInterface Standard) Committee (Microsoft, Intel, Borland, Watcom, IBMAnd others) in 1993, apparently based on a good knowledge o
photos, images, and video streams and return results.
CppVerbalExpressions: An easy-to-use C ++ Regular Expression
QtVerbalExpressions: Qt Library Based on the C ++ VerbalExpressions Library
PHP-CPP: Using C ++ to build PHP extended Libraries
Better String: Another String library of C with more functions, but no buffer overflow issues, it also contains a C ++ package.
Software
Software used to create a development environment
Compiler
C/C ++ compiler list
Clang: developed by Apple
GCC: GNU Comp
++ VerbalExpressions Library
PHP-CPP: Using C ++ to build PHP extended Libraries
Better String: Another String library of C with more functions, but no buffer overflow issues, it also contains a C ++ package.
Software
Software used to create a development environmentCompiler
C/C ++ compiler list
Clang: developed by Apple
GCC: GNU Compiler set
Intel C ++ Compiler: Developed by Intel
LLVM: a set of modular and reusable compiler and toolchain Technologies
Microsoft Visual C ++: MSVC, devel
C language is the most popular and widely used high-level programming language in the world.C language is better than other advanced languages for operating systems and system programs and hardware operations. Many large applications are written in C language.The C language has strong plotting ability, portability, and strong data processing capabilities. Therefore, it is suitable for compiling system software, 3D, 2D graphics, and animation. It is a high-level language for numerical computing.C
("The character was not found ");Return 0;}
@ Function name: strrchrFunction prototype: char * strrchr (const char * s, int c)Function: Obtain the position pointer of the last c character in string s.Function return: Position pointerParameter description:File: # Include # Include Int main (){Char string [15];Char * ptr, c = r;Strcpy (string, "This is a string ");Ptr = strrchr (string, c );If (ptr)Printf ("The character % c is at position: % d", c, ptr-string );ElsePrintf ("The character was not
are clearly written.
I mainly use these two C/C ++ compilers. Others are rarely used, so I dare not evaluate them. Please comment.
The GCC family has
Cygwin
Mingw32
DJGPP
Dev-C ++ (Mingw32)
There are also authentic gnu gcc 2.95.5 ~ 3.0.0.4
MS family has
MSC 5.0, 6.0, 7.0
MSQC 1.0, 2.5
MSVC 1.0, 4.2, 6.0, 7.0
Borland has
TC 1.0, 2.0
TC ++ 1.01, 3.0
BC 3.0, 3.1, 4.0, 4.5, 5.0, 5.02
BCB 3.0, 5.0, 6.0
Others include
Intel C/C + + 5.0
languages such as Turbo C, Fortran, and basic. In some cases, engineers who develop dongle protection software may use dos debug to directly write. com files.
Since then, the man-machine operating system has gone through upgrades such as Windows, Windows 95, Windows 2000, Windows NT, and XP, and the methods to protect EXE files are also from DOS resident programs, to write methods such as VxD and SYS. The programming language also covers: MASM, Turbo C, Vc,
C ++ package.
Software used to create a development environment
Compiler
Clang: developed by Apple
GCC: GNU Compiler set
Intel C ++ Compiler: Developed by Intel
LLVM: a set of modular and reusable compiler and toolchain Technologies
Microsoft Visual C ++: MSVC, developed by Microsoft
Open WatCom: Watcom, C, C ++, and Fortran cross compilers and tools
TCC: lightweight C language compiler
Online Comp
Http://blogold.chinaunix.net/u3/108571/showart.php? Id = 2514498
Idea of open-source C ++ Builder
Target Operating System: reactosReact Operating SystemDevelopment Environment OS:Windows XP
Development Tool: Borland C ++ Builder 6.0
Reference source code:Open Watcom c-c ++Free PascalLazarusCode: Blocks
Idea origin: I was very happy when I found that C ++ Builder 6.0 can be run on reactos, however, when bcb6.0 (BCB is the abbreviation of Borland C ++ B
Win7 under the C language programming software. Many people just start to contact C language friends want to know with the above software development C language is good, generally speaking, Microsoft's things are certainly the best, more suitable for beginners to learn, and so started to contact with other software. Here the script of the small compiled for you to share the C language programming software have?
Microsoft Visual C + +, Microsoft Visual Studio, DEV C + +, Code::Blocks, Borland C
C language only applies to the field.Common C Language IDE (integrated development environment) has Microsoft Visual C++,borland c++,watcom C + +, Borland C + +, Borland C + + Builder,borland C + + 3.1 for Dos,wa Tcom C + + 11.0 for Dos,gnu DJGPP C + +, Lccwin32 C Compiler 3.1,microsoft c,high c,turbo c,dev-c++,c-free, WIN-TC, etc...C language is a computer programming language. It has both the characteristics of high-level language and assembly langu
watcom technology used by PowerBuilder is mainly 32-bit technology, although there are options for generating 16-bit code on 32-bit platforms, but the speed is not good. On the 16-bit platform, we cannot produce 32-bit applications. One of the limitations of compiling a 16-bit application is that neither the code nor the data can exceed 64K, and if the code in the function or event is too long, PowerBuilder will generate an error when creating the EX
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.